home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13880 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: castle.nando.net!news
  2. From: Caius Martius <caius@nando.net>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: UGENT! Help on iostreams!
  5. Date: Wed, 27 Mar 1996 17:03:37 -0800
  6. Organization: Carolantic Realty, Inc.
  7. Message-ID: <3159E569.5F@nando.net>
  8. References: <4j7kpm$lpv@linux.cpsc.ucalgary.ca>
  9. NNTP-Posting-Host: vyger1215.nando.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win95; I; 16bit)
  14.  
  15. Erik Yuzwa wrote:
  16. > I'm just doing some programming for an assignment in C++, and
  17. > I want to know if there's a FAQ (or if anyone knows anything) on using
  18. > the ios class.
  19. > I'm trying to pass a file into functions, the only thing that compiles
  20. > for me so far, is:
  21. >   ifstream infile("INFILE.TXT");
  22. > .
  23. > .
  24. > .
  25. > (then when I pass it to another function..)
  26. > int Get_System_File(ifstream& infile)
  27. > please email me if anyone knows anything about it (or where I can find some
  28. > help)....
  29. > Thank you very much.
  30. > erik
  31. > --
  32. > |...............YUZWA@CPSC.UCALGARY.CA.............................|
  33. > |"..The poor devil must've scrolled it in his deathroes using a
  34. >   combination of his own blood, and even his own intestinal tract."
  35. >  "Who would do that?"
  36. >  "Someone who BADLY needed a pen."
  37.  
  38. You do need to specify ifstream as the actual argument instead try this:
  39. int Get_System_File(istream& infile);
  40.